home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.3 Development Libraries / SGI IRIX 6.3 Development Libraries.iso / dist / dist6.3 / ViewKit_dev.idb / usr / include / Vk / VkPromptDialog.h.z / VkPromptDialog.h
C/C++ Source or Header  |  1996-09-20  |  2KB  |  51 lines

  1. ////////////////////////////////////////////////////////////////////////////////
  2. ///////   Copyright 1992, Silicon Graphics, Inc.  All Rights Reserved.   ///////
  3. //                                                                            //
  4. // This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;     //
  5. // the contents of this file may not be disclosed to third parties, copied    //
  6. // or duplicated in any form, in whole or in part, without the prior written  //
  7. // permission of Silicon Graphics, Inc.                                       //
  8. //                                                                            //
  9. // RESTRICTED RIGHTS LEGEND:                                                  //
  10. // Use,duplication or disclosure by the Government is subject to restrictions //
  11. // as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data     //
  12. // and Computer Software clause at DFARS 252.227-7013, and/or in similar or   //
  13. // successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -    //
  14. // rights reserved under the Copyright Laws of the United States.             //
  15. //                                                                            //
  16. ////////////////////////////////////////////////////////////////////////////////
  17.  
  18. #ifndef VKPROMPTDIALOG_H
  19. #define VKPROMPTDIALOG_H
  20.  
  21. #include <Vk/VkDialogManager.h>
  22.  
  23. class VkPromptDialog : public VkDialogManager {
  24.  
  25.   public:
  26.     
  27.     VkPromptDialog(const char* name) : VkDialogManager(name) { }
  28.     ~VkPromptDialog();
  29.     const char *text() { return _text; }
  30.  
  31.   protected:
  32.  
  33.     char *_text;
  34.     virtual Widget createDialog(Widget);
  35.  
  36.     virtual Widget prepost ( const char      *message, 
  37.                  XtCallbackProc   okCB       = NULL, 
  38.                  XtCallbackProc   cancelCB   = NULL, 
  39.                  XtCallbackProc   applyCB    = NULL, 
  40.                  XtPointer        clientData = NULL,
  41.                  const char      *helpString = NULL,
  42.                  VkSimpleWindow  *parent     = NULL);    
  43.  
  44.     void ok(Widget, XtPointer);
  45. };
  46.  
  47. extern VkPromptDialog *getThePromptDialog();
  48. #define thePromptDialog getThePromptDialog()
  49.  
  50. #endif
  51.